package org.link.bean;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * project_name:oracledemo
 * package_name:org.link.bean
 * file_name:User.java
 * @author Link
 * create_date:2015年12月24日 下午4:02:51
 * modified_date:
 * description:用户实体类
 *
 */
public class User {

	private String id;
	private String username;
	private String userpass;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date userbirth;
	public User() {
		super();
	}
	public User(String id, String username, String userpass, Date userbirth) {
		super();
		this.id = id;
		this.username = username;
		this.userpass = userpass;
		this.userbirth = userbirth;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserpass() {
		return userpass;
	}
	public void setUserpass(String userpass) {
		this.userpass = userpass;
	}
	public Date getUserbirth() {
		return userbirth;
	}
	public void setUserbirth(Date userbirth) {
		this.userbirth = userbirth;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", userpass="
				+ userpass + ", userbirth=" + userbirth + "]";
	}
	
	
	
}
